package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.RentalSysOrders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.YongRentalSysOrdersMapper;
import com.ruoyi.system.domain.YongRentalSysOrders;
import com.ruoyi.system.service.IYongRentalSysOrdersService;

/**
 * 我的订单Service业务层处理
 * 
 * @author Mag1c_-xyy
 * @date 2024-04-27
 */
@Service
public class YongRentalSysOrdersServiceImpl implements IYongRentalSysOrdersService 
{
    @Autowired
    private YongRentalSysOrdersMapper yongRentalSysOrdersMapper;

    /**
     * 查询我的订单
     * 
     * @param orderId 我的订单主键
     * @return 我的订单
     */
    @Override
    public YongRentalSysOrders selectYongRentalSysOrdersByOrderId(Long orderId)
    {
        return yongRentalSysOrdersMapper.selectYongRentalSysOrdersByOrderId(orderId);
    }

    /**
     * 查询我的订单列表
     * 
     * @param yongRentalSysOrders 我的订单
     * @return 我的订单
     */
    @Override
    public List<YongRentalSysOrders> selectYongRentalSysOrdersList(YongRentalSysOrders yongRentalSysOrders)
    {
        return yongRentalSysOrdersMapper.selectYongRentalSysOrdersList(yongRentalSysOrders);
    }

    /**
     * 修改我的订单
     *
     * @param yongRentalSysOrders 我的订单
     * @return 结果
     */
    @Override
    public int updateYongRentalSysOrders(YongRentalSysOrders yongRentalSysOrders)
    {
        return yongRentalSysOrdersMapper.updateYongRentalSysOrders(yongRentalSysOrders);
    }






}
